import withSession from './../../../lib/session'

function handler(req, res, session) {
    req.session.destroy()
    res.json({ code: 1 })
}

export default withSession(handler)